<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Fake</title>
    <link type="text/css" href="css/css.css" rel="stylesheet" />
</head>
<link href="css/bootstrap.css" rel="stylesheet">
<body>
<div class="mianCont">
    <div class="top">
        <span id="xianshiquyu">欢迎来到Fake 请&nbsp;<a href="login-register.html">[登录/注册]</a></span>
        <span class="topRight">
    <a href="vip.html">我的Fake</a>&nbsp;|
    <a href="detail.html">我的订单</a>&nbsp;|
    <a href="contact.html">联系我们</a>
   </span>
    </div><!--top/-->
    <div class="lsg">
        <h1 class="logo"><a href="index.html"><img src="images/logoA.png" width="280" height="81" /></a></h1>
        <form action="#" method="get" class="subBox">
            <div class="subBoxDiv">
                <input type="text" class="subLeft" />
                <input type="image" src="images/subimg.png" width="63" height="34" class="sub" />
                <div class="hotWord">
                    热门搜索：
                    <a href="proinfo.html">冷饮杯</a>&nbsp;
                    <a href="proinfo.html">热饮杯</a> &nbsp;
                    <a href="proinfo.html">纸杯</a>&nbsp;
                    <a href="proinfo.html">纸巾</a>  &nbsp;
                    <a href="proinfo.html">纸巾</a> &nbsp;
                    <a href="proinfo.html">纸杯</a>&nbsp;
                </div><!--hotWord/-->
            </div><!--subBoxDiv/-->
        </form><!--subBox/-->
        <div class="gouwuche">
            <div class="gouCar">
                <img src="images/gouimg.png" width="19" height="20" style="position:relative;top:6px;" />&nbsp;|&nbsp;
                <strong class="red">0</strong>&nbsp;件&nbsp;|
                <strong class="red">￥ 0.00</strong>
                <a href="order.html">去结算</a> <img src="images/youjian.jpg" width="5" height="8" />
            </div><!--gouCar/-->
            <div class="myChunlv">
                <a href="vip.html"><img src="images/mychunlv.jpg" width="112" height="34" /></a>
            </div><!--myChunlv/-->
        </div><!--gouwuche/-->
    </div><!--lsg/-->
    <div class="positions">
        当前位置：<a href="index.html">首页</a> &gt; <a href="#" class="posCur">我的订单</a>
    </div><!--positions/-->
    <div class="cont">
        <div class="container">
            <h2>我的订单</h2>
            <table class="table">
                <thead>
                <tr>
                    <th>订单编号</th>
                    <th>下单日期</th>
                    <th>订单总价格</th>
                    <th>订单备注</th>
                    <th>订单状态</th>
                    <th>下单人</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
        </div>
        <div class="contRight" style="border:0;">
            <div class="inHelp">
                <div class="inHLeft">
                    <h4>帮助中心</h4>
                    <ul class="inHeList">
                        <li><a href="help.html">购物指南</a></li>
                        <li><a href="help.html">支付方式</a></li>
                        <li><a href="help.html">售后服务</a></li>
                        <li><a href="about.html">企业简介</a></li>
                        <div class="clears"></div>
                    </ul><!--inHeList/-->
                </div><!--inHLeft/-->
                <div class="inHLeft">
                    <h4>会员服务</h4>
                    <ul class="inHeList">
                        <li><a href="reg.html">会员注册</a></li>
                        <li><a href="login.html">会员登录</a></li>
                        <li><a href="order.html">购物车</a></li>
                        <li><a href="order.html">我的订单</a></li>
                        <div class="clears"></div>
                    </ul><!--inHeList/-->
                </div><!--inHLeft/-->
                <div class="inHRight">
                    <h4>全国统一免费服务热线</h4>
                    <div class="telBox">400-0000-0000</div>
                    <div class="weibo">
                        <wb:follow-button uid="2991975565" type="red_1" width="67" height="24" ></wb:follow-button>
                    </div>
                </div><!--inHRight/-->
                <div class="clears"></div>
            </div><!--inHelp/-->
            <div class="footer">
                <p>
                    <a href="#">进入17官网</a>&nbsp;|&nbsp;
                    <a href="index.html">商城首页</a>&nbsp;|&nbsp;
                    <a href="product.html">促销中心</a>&nbsp;|&nbsp;
                    <a href="order.html">我的订单</a>&nbsp;|&nbsp;
                    <a href="new.html">新闻动态</a>&nbsp;|&nbsp;
                    <a href="login.html">会员中心</a>&nbsp;|&nbsp;
                    <a href="help.html">帮助中心</a>
                </p>
                <p>
                    版权所有：上海17实业有限公司 版权所有  Copyright 2010-2015   沪ICP备00000000号   <a href="http://www.mycodes.net/" target="_blank">源码之家</a>
                </p>
            </div><!--footer/-->
        </div><!--mianCont/-->
        <a href="#" class="backTop">&nbsp;</a>
    </div></body>
<script src="js/jquery-3.2.1.js"></script>
<script src="js/layer/layer.js"></script>
<script src="js/global.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/js.js"></script>
<script src="js/wb.js" type="text/javascript" charset="utf-8"></script>
<script src="js/MagicZoom.js" type="text/javascript"></script>
<script>
    $(function () {
        getAllProduct(null);
    })
    function  enter() {
            layer.open({
                type: 2,
                title: 'layer mobile页',
                shadeClose: true,
                shade: 0.8,
                area: ['600px', '30%'],
                content: 'detailAll.html' //iframe的url
            });
    }
    function getAllProduct(name) {
        $('tbody').empty();
        $.getJSON('queryDetail.do', {pname: name}, function (data) {
            if (data.code) {
                $.each(data.result, function (index, obj) {
                    var tr = $('<tr></tr>');
                    var td1 = $('<td></td>').text(obj.purno);
                    var td2 = $('<td></td>').text(obj.date);
                    var td4 = $('<td></td>').text(obj.pprice);
                    var td5 = $('<td></td>').text(obj.text);
                    var td6 = $('<td></td>').html(obj.status == 1 ? '<span style="color: green">未付款</span>' : '<span style="color: red">等待发货</span>');
                    var td7 = $('<td></td>').text(obj.uname);
                    var td8 = $('<button>').text("删除");
                    var td9 = $('<button onclick = enter()>').text("详细订单");
                    tr.append(td1).append(td2).append(td4).append(td5).append(td6).append(td7).append(td8).append(td9);
                    $('tbody').append(tr).append("");

                })
            }
        })
    }

</script>
</html>